package com.augurit.gzcgwsp.common.convert;

import com.augurit.gzcgwsp.common.entity.BaseBusEntity;
import com.augurit.gzcgwsp.common.form.YwBaseForm;

public class WfBusClientBaseInfoConvertor {
	
	public static void convertVoToForm(BaseBusEntity vo, YwBaseForm form) {
		form.setSqdw(vo.getSqdw());
		form.setLarq(vo.getLarq());
		form.setSarq(vo.getSarq());
		form.setJar(vo.getJar());
		form.setJarq(vo.getJarq());
	}
	
	public static void convertFormToVo(YwBaseForm form, BaseBusEntity vo) {
		if(form.getSqdw() != null && form.getSqdw().trim().length() > 0)
			vo.setSqdw(form.getSqdw().trim());
		vo.setLarq(form.getLarq());
		vo.setSarq(form.getSarq());
		if(form.getJar() != null && form.getJar().trim().length() > 0)
			vo.setJar(form.getJar().trim());
		vo.setJarq(form.getJarq());
	}
}
